package com.jumei.flume.filter;

import com.jumei.flume.bo.SensorMessage;
import com.jumei.flume.bo.ShuabaoSensorMessage;

public class EventsFilter {

	/**
	 * 检测消息是否满足
	 * 
	 * project : default
	 * event: {
	 *  dealist_follow
		$AppViewScreen
		click_material
		view_material
		$AppStart
		view_comment_list
		$pageview
		click_comment_hotword
		view_product_detail
		video_play
		app_tab
		app_confirm_submit
		click_add_shopcar
		app_payment_status
		click_wish_add_shopcar
		video_play_time
		app_cart_show
		click_add_submit
		app_pay_cashier_submit
		h5_add_cart
		app_confirm_show
		click_add_wish
		click_like_comment
		click_to_comment
		click_button_coutuan
		hhbg123_click
		partner_advertise_download
		jmkefu_app_pageview
		app_cscenter_home_shoppingproblem
		app_cscenter_home_logisticsproblem
		app_cscenter_home_aftersaleproblem
		app_cscenter_home_otherproblems
		jmkefu_app_click

	 * 
	 * }
	 * 
	 * 
	 * @param s
	 * @return
	 */
//	public static boolean doFilter(SensorMessage s) {
//
//		if("shuabao_production".equals(s.getProject())) {
//			return Boolean.FALSE;
//		}
//		return Boolean.TRUE;
//	}

	public static boolean doFilter4Shuabao(ShuabaoSensorMessage s) {

		if("shuabao_production".equals(s.getProject())) {
			return Boolean.TRUE;
		}
		return Boolean.FALSE;
	}
}
